home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jazlib.arc / JZSCROFF.C < prev    next >
Text File  |  1988-12-18  |  916b  |  29 lines

  1. #include <jaz.h>
  2. /*
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │jzscroff.c                                     │
  5. │Turn the display screen off. When turned back on the screen will be as it   │
  6. │was before. There is no need to save the data.                  │
  7. │                                         │
  8. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. */
  11. jzscroff()
  12. {
  13.   #define CPORT 0x3D8        /* address of mode select register */
  14.   #define MPORT 0x3B8        /* address of CRT control port       */
  15.  
  16.   unsigned int PORTADDR;    /* hold address of port        */
  17.   unsigned int wport;        /* hold original contents       */
  18.  
  19.   if (MEMB(0x40,0x49) == 7)    /* mono card */
  20.     PORTADDR = MPORT;
  21.   else
  22.     PORTADDR = CPORT;
  23.  
  24.   wport = inp(PORTADDR);    /* get original contents */
  25.  
  26.   outp(PORTADDR,wport & 0xF7);    /* disable the display bit */
  27. }
  28.  
  29.